package entity;

import java.io.Serializable;

public class Users implements Serializable {
    private int userId;
    private String userName;
    private String userPassword;
    private String userTelephone;
    private String userName2;
    private int isAdmin;

    public Users() {
    }

    public Users(String userName, String userPassword, String userTelephone, String userName2, int isAdmin) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTelephone = userTelephone;
        this.userName2 = userName2;
        this.isAdmin = isAdmin;
    }

    public Users(int userId, String userName, String userPassword, String userTelephone, String userName2, int isAdmin) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTelephone = userTelephone;
        this.userName2 = userName2;
        this.isAdmin = isAdmin;
    }

    public Users(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserTelephone() {
        return userTelephone;
    }

    public void setUserTelephone(String userTelephone) {
        this.userTelephone = userTelephone;
    }

    public String getUserName2() {
        return userName2;
    }

    public void setUserName2(String userName2) {
        this.userName2 = userName2;
    }

    public int getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(int isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Users(int userId) {
        this.userId = userId;
    }
}
